<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="/common/taglibs.jsp"%>
<style type="text/css">
.dateWidth1{
   width:195px;
}
.select_width{
   width:130px;
}
</style>
<x:parse xml="${param.xmlstr}" var="xmlData" />

<table class="t_css" width="100%" border="0" cellpadding="0" id="basicInfo"
	cellspacing="1">
	<tr>
		<td   colspan="6" class="t_bar2">基本信息</td>
		
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>企业名称：</td>
		<td  colspan="5">
			<input id="zh_title" name="proposal/zh_title" label="企业名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/zh_title" />"/> 
		</td>
	</tr>
	<%-- <tr>
		<td   align="right"><span class="color_red">*</span>企业名称：</td>
		<td  colspan="5">
			<input name="proposal/company_name" label="企业名称" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/company_name" />"/> 
		</td>
	</tr> --%>
	<tr>
      	<td  align="right" nowrap><span class="color_red">*</span>成立时间：</td>
		<td colspan="2">
			<c:set var="regtime_date"><x:out select="$xmlData/data/proposal/regtime_date" /></c:set>
			<cpt:date id="regtime_date" name="proposal/regtime_date" value="${regtime_date}" className="required date " label="开始日期" ></cpt:date> 
		</td>
		<td align="right"><span class="color_red">*</span>企业所在地：</td>
		<td colspan="2"><input name="proposal/address" label="企业所在地"
			type="text" required class="input_css required" maxlength="50"
			value="<x:out select="$xmlData/data/proposal/address" />" /></td>
	</tr>
	<tr>
		<td   align="right"><span class="color_red">*</span>主要出口产品<br/>(任意填写，分号隔开)：</td>
		<td  colspan="5">
			<input name="proposal/outgoods" label="主要出口产品" type="text" required class="input_css required maxlength:100"  style="width: 725px;" maxlength="100" value="<x:out select="$xmlData/data/proposal/outgoods" />"/> 
		</td>
	</tr>
	<tr>
	    <td  align="right" nowrap><span class="color_red">*</span>申报日期：</td>
		<td colspan="5">
			<c:set var="submit_date"><x:out select="$xmlData/data/proposal/submit_date" /></c:set>
			<cpt:date id="submit_date" name="proposal/submit_date" value="${submit_date}" className=" required date" label="申报日期"></cpt:date> 
		</td>
	</tr>
	<tr>
		<td   colspan="6" class="t_bar2">上年度企业经营情况</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>企业总收入（万元）：</td>
	<td colspan="2">
	<input  name="proposal/income_total"   label="企业总收入" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/income_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate"   label="企业总收入-->同比增幅" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>交税总额（万元）：</td>
	<td colspan="2">
	<input  name="proposal/tax_total"   label="交税总额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/tax_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate1"   label="交税总额-->同比增幅" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate1" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>出口总额（万美元）：</td>
	<td colspan="2">
	<input  name="proposal/out_total"   label="出口总额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/out_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate2"   label="出口总额-->同比增幅" type="text"  class="input_css required"  style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate2" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>进口总额（万美元）：</td>
	<td colspan="2">
	<input  name="proposal/in_total"   label="进口总额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/in_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate3"   label="进口总额-->同比增幅" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate3" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>一般贸易出口金额<br/>（万美元）：</td>
	<td colspan="2">
	<input  name="proposal/ybmy_total"   label="一般贸易出口金额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/ybmy_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate4"   label="一般贸易出口金额-->同比增幅" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate4" />"/> 
	</td>
	</tr>
	<tr>
	<td align="right"><span class="color_red">*</span>服务贸易出口金额<br/>（万美元）：</td>
	<td colspan="2">
	<input  name="proposal/fwmy_total"   label="服务贸易出口金额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/fwmy_total" />"/> 
	</td>
	<td align="right"><span class="color_red">*</span>同比增幅（%）：</td>
	<td colspan="2">
	<input  name="proposal/growing_rate5"   label="服务贸易出口金额-->同比增幅" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,2,2,null,true)"  value="<x:out select="$xmlData/data/proposal/growing_rate5" />"/> 
	</td>
	</tr>
	</table>
	<div class="t_bar">
	<span class="color_red">*</span>主要出口合同执行情况

</div>
<table id="tblContracts" cellpadding="0" class="table01" width="100%"
	border="0" cellpadding="0" style="*border-bottom: #a1c0dc 1px solid;">
	<thead>
		<tr style="border: 1px solid #B7D1E6">
			<th class="TblHead" align="center" width="5%">选择</th>
			<th class="TblHead" align="center" width="5%">序号</th>
			<th class="TblHead" align="center" width="30%">项目名称</th>
			<th class="TblHead" align="center" width="25%">出口产品</th>
			<th class="TblHead" align="center" width="15%">出口国别 /地区</th>
			<th class="TblHead" align="center" width="10%">合同标的额<br/> （万美元）</th>
			<th class="TblHead" align="center" width="10%">实收外汇 <br/>（万美元）</th>
			
		</tr>
	</thead>
	<tbody id="tab">
		<tr style="display: none">
			<td align="center"><input type="radio" class="radiobutton" name="selContracts">
			</td>
			<td align="center"><span name="contracts|contract[0]@seq_no">[index]</span>
			</td>
			<td align="center"><input type="text" style="width:80%"
				name="contracts|contract[0]|prj_name" class="input_text required"
				maxlength=100 label="项目名称" value="" />
			</td>
			<td align="center"><input type="text" style="width:80%"
				name="contracts|contract[0]|foreign_goods" class="input_text required"
				maxlength=100 label="出口产品" value="" />
			</td>
			<td align="center">
			 <cpt:select id="country[index]" key="country"  name="country" onChange="initControlValue(this.id);" style="width:80%"></cpt:select>
		     <input type="hidden" name="contracts|contract[0]|country_value" class="required" label="出口国别" />
		     <input type="hidden" name="contracts|contract[0]|country_name" value=""/>
			</td>
			<td align="center"><input type="text" style="width:80%;text-align: right;"
				name="contracts|contract[0]|invest" class="input_text required"
				onfocus="InitInput.setNumber(this,9,4,2)" label="合同标的额" value="" />
			</td>
			<td align="center"><input type="text" style="width:80%;text-align: right;"
				name="contracts|contract[0]|foreign_exchange" class="input_text required"
				onfocus="InitInput.setNumber(this,9,4,2)" label="实收外汇" value="" />
			</td>
		</tr>


		<c:set value="0" var="index" scope="page" />
		<x:forEach select="$xmlData/data/contracts/contract" var="contract">

			<c:choose>
				<c:when test="${index<10}">
					<c:set value="0" var="flag" scope="page" />
				</c:when>
				<c:otherwise>
					<c:set value="" var="flag" scope="page" />
				</c:otherwise>
			</c:choose>
			<tr>
				<td align="center"><input type="radio" class="radiobutton"
					name="selContracts">
				</td>
				<td align="center"><span
					name="contracts/contract[${flag}${index}]@seq_no">${index+1}</span></td>
				<td align="center"><input type="text" style="width:80%"
					name="contracts/contract[${flag}${index}]/prj_name"
					class="input_text required" maxlength=100 label="项目名称"
					value="<x:out select="$contract/prj_name" />" />
				</td>
			    <td align="center"><input type="text" style="width:80%"
					name="contracts/contract[${flag}${index}]/foreign_goods"
					class="input_text required" maxlength=100 label="出口产品"
					value="<x:out select="$contract/foreign_goods" />" />
				</td>
				<td align="center">
					<c:set var="country_value"><x:out select="$contract/country_value" /></c:set>
					<cpt:select id="country${index}" key="country" name="country"  value="${country_value }" onChange="initControlValue(this.id);" style="width:80%"></cpt:select>
			        <input type="hidden" name="contracts/contract[${flag}${index}]/country_value" class="required" label="出口国别" value="<x:out select="$contract/country_value" />"/>
			        <input type="hidden" name="contracts/contract[${flag}${index}]/country_name" value="<x:out select="$contract/country_name" />"/>
				</td>
				<td align="center"><input type="text" style="width:80%;text-align: right;"
					name="contracts/contract[${flag}${index}]/invest"
					class="input_text required" onfocus="InitInput.setNumber(this,9,4,2)" label="合同标的额"
					value="<x:out select="$contract/invest" />" />
				</td>
				<td align="center"><input type="text" style="width:80%;text-align: right;"
					name="contracts/contract[${flag}${index}]/foreign_exchange"
					class="input_text required" onfocus="InitInput.setNumber(this,9,4,2)" label="实收外汇"
					value="<x:out select="$contract/foreign_exchange" />" />
				</td>
			</tr>
			<c:set value="${index+1}" var="index" scope="page" />
		</x:forEach>
		
	</tbody>
</table>
<table width="98%" align="center" border="0">
			<tr style="border: 0"><td style="border: 0">
			<input class="button" name="cmdAddbefore" type=button value="添加" onclick="addNewRow('tblContracts');showDateTag('tblContracts');try{top.resizeFrame();}catch(e){};">
			<input class="button" name="cmdMovePrev" type=button value="上移" onclick="movePrev('tblContracts','selContracts')">
			<input class="button" name="cmdMoveNext" type=button value="下移" onclick="moveNext('tblContracts','selContracts')">
			<input class="button" name="cmddel" type=button  value="删除" onclick="deleteSelectedRow('tblContracts','主要出口合同执行情况');countjsTable2('tblContracts');">
			</td></tr>
	</table>	
	<table class="t_css" width="100%" border="0" cellpadding="0" cellspacing="1" id="zjinfo">
	
	
	<tr>
		<td   colspan="6" class="t_bar2">申报项目资金情况</td>
		
	</tr>
	<tr>
		<td  align="right"  >项目类别：</td>
		<td   ><x:out select="$xmlData/data/proposal/grant_name" />
		</td> 
		<td  align="right">支持方式：</td>
		<td colspan="3">
			<span name="proposal/sponsor_category"><x:out select="$xmlData/data/proposal/sponsor_category" /></span> 
		</td>
	</tr>
	<tr>
	<td   align="right"><span class="color_red">*</span>申请金额（万元）：</td>
	    <td >
	    <input  name="proposal/sqje" id="sqje"  label="申请金额" type="text"  class="input_css required" style="text-align: right" onfocus="InitInput.setNumber(this,9,4,2)" value="<x:out select="$xmlData/data/proposal/sqje" />"/> 
	    </td>
		<td  align="right">资金级次：</td>
		<td colspan="3">
		<span  name="proposal/fund_level">市级</span>
		</td>
	</tr>
	<tr>
	<td  align="right" nowrap>归口管理部门：</td>
		<td  ><span name="proposal/org_name">无锡市商务局</span> </td>
	    <td  align="right">管理类别：</td>
		<td  colspan="3">
		<span name="proposal/manage_category"><x:out select="$xmlData/data/proposal/manage_category" /></span>
		</td>
		
	</tr>
	<tr>
		<td  align="right" nowrap><span class="color_red">*</span>项目所属产业：</td>
		<td nowrap colspan="5">
			<c:set var="industry"><x:out select="$xmlData/data/proposal/industry_value" /></c:set>
			<cpt:checkbox key="industry" name="industry" repeatColumn="5" style="border: 0px; padding: 0px; margin: 0px;float:left;"></cpt:checkbox>
			<input type="hidden" id="industry_value" name="proposal/industry_value" class="required" value="${industry}" label="项目所属产业">
			<input type="hidden" name="proposal/industry_name" value="<x:out select="$xmlData/data/proposal/industry_name" />">
		</td>
	</tr>
	<tr>
	    <td  align="right">功能分类：</td>
		<td  colspan="5">
		<span name="proposal/grant_function"><x:out select="$xmlData/data/proposal/grant_function" /></span>
		</td>
		
	</tr>
	</table>
	<table  width="100%" border="0" cellpadding="0" cellspacing="1">
	<tr>
		<td    class="t_bar2">申请资助依据条款</td>
		
	</tr>
	<tr>
		<td >
		&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;
		<span name="proposal/policy_foundation"><x:out select="$xmlData/data/proposal/policy_foundation" /></span> 
		</td>
	</tr>
</table>
<br/>


<table class="t_css" width="100%" border="0" cellpadding="0" 
	cellspacing="1" id="info5">
	<tr>
		<td class="t_bar2" colspan="8">人员信息
		</td>
<tr>
		<td  align="right"><span class="color_red">*</span>项目联系人：</td>
		<td>
			<input  name="proposal/contact_psn_cname" label="项目联系人" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_cname" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
			<input  name="proposal/contact_psn_tel" label="联系电话" type="text" required class="input_css required"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_tel" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
			<input  name="proposal/contact_psn_mobile" label="联系手机" type="text" maxlength="11" required class="input_css required mobile"   maxlength="20" value="<x:out select="$xmlData/data/proposal/contact_psn_mobile" />"/> 
		</td>
		<td  align="right"><span class="color_red">*</span>电子邮箱：</td>
		<td  >
			<input  name="proposal/contact_psn_email" label="电子邮箱" type="text" required class="input_css required email"   maxlength="50" value="<x:out select="$xmlData/data/proposal/contact_psn_email" />"/> 
		</td>
	</tr>
	
		<tr>
		<td  align="right">项目负责人：</td>
		<td>
			<input  name="proposal/fzr_psncode" type="hidden" required class="input_css "   maxlength="20" value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/psn_code" />"/> 
		    
		    <span name="proposal/fzr_psnname" ><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/basic_info/zh_name" /></span>
		    <c:set var="psnCode"><x:out select="$xmlData/data/proposal/psn_code" /></c:set>
		    <security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
				<span id="personSelect">
				<input type="button" class="button_02" style="height: 25px; padding: 1px;" id="selectPsn" value="设置">
				<cpt:personSelect key="personSelect"  addRole="3"  psnCode="${psnCode}" callback="selectPsnCall" bindEvent="click" bindObject="selectPsn" title="设置项目负责人" fltFile="personSelector.ftl"></cpt:personSelect>
				</span>
			</security:authorize>
		
		</td>
		<security:authorize ifNotGranted="A_DAILU_PROPOSAL"> 
		<td  align="right">联系电话：</td>
		<td  >
		<span name="proposal/fzr_tel"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" /></span>
		</td>
		<td  align="right">联系手机：</td>
		<td  >
		<span name="proposal/fzr_mobile"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" /></span>
		</td>
		</security:authorize>
		<security:authorize ifAnyGranted="A_DAILU_PROPOSAL">
		<td  align="right"><span class="color_red">*</span>联系电话：</td>
		<td  >
		<input name="proposal/fzr_tel" label="项目负责人联系电话" type="text" required  class="input_css required"  onchange="synFzrMsg(1)"  maxlength="50"  value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/tel_work" />"/>
		</td>
		<td  align="right"><span class="color_red">*</span>联系手机：</td>
		<td  >
		<input name="proposal/fzr_mobile" label="项目负责人联系手机" type="text" onchange="synFzrMsg(1)" onfocus="InitInput.setNumber(this,11,0,0)"  maxlength="11"  class="input_css required mobile"   value="<x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/mobile" />"/>
		</td>
		</security:authorize>
		<td  align="right">电子邮箱：</td>
		<td  >
		<span name="proposal/fzr_mail"><x:out select="$xmlData/data/zh_persons/zh_person[@submit_psn='1']/contact/email" /></span>
		</td>
		
		</tr>
</table>

<script type="text/javascript">
</script>
